<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>商家列表</title>
	<!-- bootstrap 核心css -->
	<link rel="stylesheet" href="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/bootstrap/css/bootstrap.min.css">
	<script type="text/javascript" src="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/Common/js/jquery-1.7.2.min.js"></script>
	<link rel="stylesheet" href="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/Common/css/main.css" />
	<link rel="stylesheet" href="http://localhost/Project/Meituan/./Mei/Mei/Admin/Tpl/Public/Common/css/base.css" />
</head>
<body>
	<div class="pos">商家列表</div>
	<table class="table table-bordered table-hover">
		<tr height="30">
			<th width="5%" style="text-align:center">sid</th>
			<th width="60%">商家名称</th>
			<th style="text-align:center">操作</th>
		</tr>
		<?php if(is_array($allSeller)):?><?php  foreach($allSeller as $v){ ?>									
			<tr height="30">
				<td style="text-align:center"><?php echo $v['sid'];?></td>
				<td><?php echo $v['sname'];?></td>
				<td style="text-align:center"><a href="<?php echo U('location',array('sid'=>$v['sid']));?>" class="btn btn-info btn-mini">商家位置</a> <a href="<?php echo U('edit',array('sid'=>$v['sid']));?>" class="btn btn-primary btn-mini edit">修改</a> <a href="javascript:" class="btn btn-danger btn-mini" onclick="if(confirm('确定删除吗？'))location.href='<?php echo U('del_seller',array('sid'=>$v['sid']));?>'">删除</a></td>
			</tr>
		<?php }?><?php endif;?>
	</table>
	<div class="pagelist"><?php echo $pagelist;?></div>
	<script type="text/javascript">
// 创建地址解析器实例
var myGeo = new BMap.Geocoder();
// 将地址解析结果显示在地图上,并调整地图视野
myGeo.getPoint("四方大厦", function(point){
  if (point) {
  	alert(JSON.stringify(point))
    map.centerAndZoom(point, 16);
    map.addOverlay(new BMap.Marker(point));
  }
}, "北京市");
</script>
</body>
</html>